home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Applications / Alpha.5.96 folder / Help / Alpha Commands next >
Encoding:
Text File  |  1994-09-20  |  30.0 KB  |  596 lines  |  [TEXT/ALFA]

  1. ==============================================================================
  2. = Alpha Commands
  3. ==============================================================================
  4.  
  5. In this list of routines, text between '<' and '>' is a placeholder for a 
  6. required parameter, text between '[' and ']' is a placeholder for an 
  7. optional parameter, and the '|' signifies a choice of two or more 
  8. alternatives.  A '+' signifies that the previous symbol can be present one 
  9. or more times, while a '*" means zero or more times.  Some commands have no 
  10. parameters, and are only expected to be called interactively.
  11.  
  12.  
  13.  
  14. The following are Alpha-specific tcl routines:
  15.  
  16. • abortEm - aborts whatever is currently happening
  17. • addMenuItem [-m] [-l <meta-characters>] <menu name> <item name> - Convert
  18.   item to menu form and add to specified menu. If '-m' specified, menu 
  19.   form conversion not done. The '-l' option allows you to use menu meta 
  20.   characters as text of menu items. If the '-l' option is used, the 
  21.   <meta-characters> string is interpreted for menu item attributes, and 
  22.   meta-characters in <item name> are included in the menu item text 
  23.   literally. For example: 
  24.       addMenuItem -m -l "/B" "Hello/C" 
  25.   would appear as the text "Hello/C" in the menu, and have "B" as its 
  26.   command equivalent.
  27. • AEBuild [<flags>] <app (name|creator)> <aesuite> <aeevent> [<event parameters>]*  -
  28.   Build and send an apple-event. 'AEBuild' is apple's code of the same 
  29.   name. Each "event parameter" is two parameters, a parameter type and 
  30.   the data for the parameter. See the AEBuild doc for more details, 
  31.   :Tcl:SystemCode:think.tcl for examples. The flags are '-r' (no reply), 
  32.   '-q' (queue reply, in which case 'handleReply' (in appleEvents.tcl) is 
  33.   called with the reply as a parameter, and '-t <timeout>' specifies the 
  34.   timeout in ticks.
  35. • alertnote message_string
  36.   This command will display message_string in a standard Macintosh alert box.
  37. • alphaHelp - display Alpha help.
  38. • ascii (see bindings).
  39. • askyesno [-c] prompt
  40.   This command will display a Macintosh alert box with 'prompt' displayed
  41.   with the push buttons Yes and No. The command will return the 
  42.   string "yes" or "no". The '-c' flag specifies that a cancel button be 
  43.   used as well.
  44. • backColor - set background color
  45. • backwardChar - moves insertion one char back
  46. • backwardCharSelect - extends selection one char back
  47. • backwardDeleteWord - deletes previous word
  48. • backwardWord - moves insertion one char back
  49. • balance - selects smallest set of parens, braces, or 
  50.   brackets that encloses the current selection
  51. • beep
  52. • beginningBufferSelect - extend selection to the 
  53.   beginning of the buffer
  54. • beginningLineSelect - extend selection to the 
  55.   beginning of the line
  56. • beginningOfBuffer - move insertion to the beginning 
  57.   of the buffer
  58. • beginningOfLine - move insertion to the beginning of 
  59.   the line
  60. • bind  (see bindings)
  61. • blink <pos> - blink cursor at 'pos'
  62. • breakIntoLines <string> - return 'string' with 
  63.   carriage returns and spaces inserted to satisfy 
  64.   'leftFillColumn' and 'fillColumn' variables.
  65. • bringToFront <winName> - Bring named window to front.
  66. • capitalizeRegion - capitalize all words in selected 
  67.   region 
  68. • capitalizeWord - capitalize word
  69. • cd [directory]
  70.   This command will set the current working directory to "directory". The directory 
  71.   argument may or may not end with a colon. The working directory is the directory 
  72.   in which file names that contain no colons (folders) will be located with file related 
  73.   commands. No argument means Alpha's home directory.
  74. • centerRedraw - redraw window with current line in 
  75.   the middle.
  76. • clear - clear selected text
  77. • closeAll - close all windows
  78. • colors <fore red> <fore green> <fore blue> <back red> <back green> <back blue>
  79. • copy - copy region
  80. • cp <fromName>+ <toName>
  81.   This command will copy the file fromName and name the new file toName, 
  82.   overwriting any existing file. This command copies both data forks, and 
  83.   the Finder information. 
  84. • createTagFile - searches all files in current file set 
  85.   and saves the locations of any function declarations
  86.   in a file called 'cTAGS'.
  87. • createTMark <name> <pos> - create a temporary 'mark' 
  88.   at location 'pos'. 
  89. • currentPosition - displays current and total bytes.
  90. • cut - deletes and saves region
  91. • deleteChar - delete char AFTER cursor
  92. • deleteMenuItem [-m] <menu name> <item name> - Convert item to menu form 
  93.   and delete from specified menu. If '-m' specified, menu form conversion 
  94.   not done. 
  95. • deleteModeBindings <mode> - Delete all bindings for specified mode.
  96. • deleteSelection - delete current position, don't save
  97. • deleteWord - delete word after cursor
  98. • describeBinding - display the binding of the next typed key sequence. 
  99. • deleteText <pos1> <pos2> - remove text between 'pos1' 
  100.   and 'pos2'
  101. • display [-w <win>] <pos> - move pos's line to top of screen.
  102. • displayMode <mode> - Up to four characters of the 'mode' string are 
  103.   displayed in the status line at the bottom of a window.
  104. • dosc [<-c 'sign' | -n appName>] [-k 'clas'] [-e 'evnt'] <-s string | -f fileName> [<-t timeout|-r>]
  105.   Send an AppleEvent, by default class 'misc', event 'dosc'.
  106.    -c 'sign' 
  107.            "sign" is a four-letter creator signature of a running application.
  108.    -n appName
  109.            "appName" is the name of a running application.
  110.    -k 'clas'
  111.            "clas" is a four-letter event class.
  112.    -e 'evnt'
  113.            "evnt" is a four-letter event class.
  114.    -s string
  115.            "string" is the text of a script to send to the other app.
  116.    -f fileName
  117.            "fileName" is the complete or relative pathname of a file the other 
  118.            application should execute.
  119.    -t timeout
  120.            "timeout" is the number of ticks Alpha should wait for a response. A 
  121.            timeout of "0" means wait forever.
  122.    -r
  123.            Do not wait for reply.
  124.    -q
  125.            Queue reply.
  126.            
  127.    If neither of the '-c' and '-n' options is chosen, the PPC Browser is 
  128.    used. Either '-s' or '-f' must be chosen. Thus, you can have "Alpha 
  129.    5.02" and "Alpha 5.02 Copy" sending Apple events to each other, or they 
  130.    can send events to a remote server such as Apple's ToolServer. 
  131.    "$HOME:Tcl:UserCode:createStuffitArchive.tcl" contains examples of 
  132.    controlling Stuffit Deluxe via this command.
  133. • downcaseRegion - changes all uppercase letters to 
  134.   lowercase in current region
  135. • downcaseWord - changes all uppercase letters to 
  136.   lowercase in current word
  137. • dumpColors - dump current foreground and background
  138.   colors into the current buffer in Alpha-readable
  139.   format.
  140. • dumpMacro - prompts for a name and then dumps a tcl proc representation 
  141.   of the current keyboard macro into the current window.
  142. • echo <string>* - echo the strings (used 
  143.   in shells).
  144. • edit <name> [-r] [-m] [-g <t> <t> <w> <h>] - Open a file in a new window. 
  145.   '-r' means open the file read-only. '-m' means omit the function titlebar 
  146.   menu and present only the marks titlebar menu, which is labeled with the 
  147.   contents of 'markLabel'. The '-g' option allows left and top coords to 
  148.   be specified, plus width, and height. All or none.
  149. • enableMenuItem <menuName> <item text> <on|off> - Either enable or 
  150.   disable the menu item of user menu 'menuName' that has text '<item 
  151.   text>'. Note that unless the menu is not only created, but also already
  152.   inserted, this command has no effect. 
  153. • endBufferSelect - extend selection to the end of the 
  154.   buffer
  155. • endKeyboardMacro - stop recording keyboard macro
  156. • endLineSelect - extend selection to the end of line
  157. • endOfBuffer - move insertion to the end of the buffer
  158. • endOfLine - move insertion to the end of the line
  159. • enterSelection - use current selection for future searches.
  160. • exchangePointAndmark - exchange the current 'mark' 
  161.   w/ the current insertion point
  162. • execute - prompt user for a function or macro. The 
  163.   tab key acts as a "completion" command.
  164. • executeKeyboardMacro - execute the current keyboard 
  165.   macro
  166. • fileInfo - prompts for a file, and displays type, 
  167.   creator, sizes of both data and resource forks, last
  168.   modification time, and creation time
  169. • fileRemove - prompts for a file, and removes it
  170. • find - bring up the find dialog
  171. • findFile - open a file in a new window
  172. • findInNextFile - search next file.
  173. • findTag - prompt user for a function name and attempt 
  174.   to use the file 'cTAGS' to locate the function's 
  175.   definition
  176. • foreColor - set foreground (text) color
  177. • forwardChar - move insertion one character forward
  178. • forwardCharSelect - extend selection one character 
  179.   forward
  180. • forwardWord - move insertion one word forward
  181. • freeMem - give a rough approximation of the current 
  182.   memory reserves of ALPHA
  183. • get_directory
  184.   This command will display a standard Macintosh file dialog and request the user 
  185.   select a folder. The command will return the selected folder's full path name, or an 
  186.   empty string if the Cancel button was selected.
  187. • getAscii - displays the ASCII code for character at 
  188.   current insertion point
  189. • getChar - waits for a keystroke, returns ascii.
  190. • getfile <prompt>
  191.   This command will display an SFGetFile() and return the full path name of the 
  192.   selected file, or an empty string if CANCEL button was selected.
  193. • getFileInfo <file> <arr> - Given a file name, creates an array called 
  194.   'arr' in the current context, containing fields 'created', 'creator', 
  195.   'modified', 'type', 'datalen', and 'resourcelen'. 'created' and 
  196.   'modified' are in a form suitable for the command 'mtime'.
  197. • getGeometry - return a TCL list containing the left 
  198.   edge of the current window, the top, the width, and
  199.   height.
  200. • getline <prompt> <default>
  201.   This command will display a Macintosh alert box with prompt displayed, a 
  202.   text edit field with default initially in the field, and with the push 
  203.   buttons OK, Cancel.. The command will return the text entered into the 
  204.   text edit field by the user, or an empty string if the user selected the 
  205.   Cancel button. 
  206. • getMainDevice - return a list containing the left, top, right, and 
  207.   bottom of the rectangle defining the main device.
  208. • getMark - return the current mark.
  209. • getNamedMarks - return list of all permanent marks in open files. Each
  210.   element of a list describes one mark as a sublist of the mark's name, 
  211.   the complete pathname of the mark's file, the position of the first 
  212.   character in the first line displayed, the current position, and the 
  213.   end of the selection if text is hilited, or the current position again 
  214.   if there is no hilited section.
  215. • getPathName - prompt the user with an SFGetFile dialog and return 
  216.   complete pathname.
  217. • getPos [-w <win>] - return the current insertion point
  218. • getScrap - returns system TEXT scrap.
  219. • getSelect - return the currently selected text, if 
  220.   any.
  221. • getText [-w <win>] <pos1> <pos2> - return the text between 'pos1' 
  222.   and 'pos2'. '-w' can be used to specify a window.
  223. • getTMarks - Return a list of temporary marks. Each item of the returned 
  224.   list is a sublist containing the mark name, the complete pathname of the 
  225.   mark, and the start and finish of the selection named by the mark. The 
  226.   following is an example of the result: 
  227.  
  228.     {{temp1 External:file.c 1312 1315} {temp2 Internal:it.h 111 111}} 
  229.  
  230. • getWinInfo [-w <win>] <arr> - Creates an array in current context 
  231.   containing info about either the current or a specified window. Array 
  232.   has fields 'state', 'platform', 'read-only', 'tabsize', and 'dirty'.
  233. • glob [-i] [-t <TYPE>] [-c <CRTR>]
  234.   The original glob provided by the UNIX version of tcl was not quite 
  235.   adequate for the more complex Macintosh file system. Issues such as 
  236.   invisible file handling, Finder type and creator filtering, and space 
  237.   handling in file names. Release 6 of tcl has dealt with the original 
  238.   problem with spaces in filenames, but the following options are provided 
  239.   to deal with additional Macintosh issues. 
  240.  
  241. Anyway, the new glob now takes several options. They are:
  242.     -i    This option causes glob to list invisible files also.
  243.     -t TYPE    This option causes glob to only list file with the 
  244.         indicated Finder file typeTYPE. This option may be 
  245.         used with the -c option.
  246.     -c CRTR    This option causes glob to only list file with the 
  247.         indicated Finder file creatorCRTR. This option may 
  248.         be used with the -t option.
  249.         Also note that the original glob would skip dot files
  250.         (i.e., file names the begin with a period) 
  251.         in the listing, unless the pattern began with a period.
  252.         Tickle extends this concept one step further on the
  253.         Macintosh, and skips spot files (i.e., file names that 
  254.         begin with '•'), unless the pattern starts with a spot.
  255. • goto <pos> - goto the position 'pos'.
  256. • gotoMark - goto named mark, use 'mark' in macros.
  257. • gotoTMark <name> - goto the temporary mark 'name'.
  258. • icon [-f <winName>] [-c|-o|-t|-q] [-g <h> <v>] - Having to do w/ 
  259.   iconifying windows. '-c' means close (iconify) window, '-o' open, '-t' 
  260.   toggle open/close, '-q' returns either a '1' for an iconified window or a 
  261.   '0' for an uniconified window, and '-g' moves the icon to horizontal 
  262.   position <h> and vertical position 'v'. Options are executed as they 
  263.   are parsed, so the '-f' option, if present, should always be first. 
  264. • insertAscii - prompts for an ASCII code and inserts
  265.   into text.
  266. • insertFile - prompts for a file name and inserts the
  267.   corresponding file into the current window. Not
  268.   undoable.
  269. • insertMenu <name> - insert the previously created user menu 'name' into 
  270.   the menuBar. 
  271. • insertPathName - present the user w/ a SFGetFIle dialog 
  272.   and paste the complete path-name of the chosen file
  273.   into the current window
  274. • insertText [-w <win name>] <text>* - Insert 'text' at the current 
  275.   insertion point.
  276. • insertToTop - make the line that the insertion point 
  277.   is on the first line shown, and display the current 
  278.   line number along w/ the total number of lines in file
  279. • isearch - incremental search: searches w/o a dialog,
  280.   searches as you type the search pattern. Does not do
  281.   regular expression searches. 'matchWords' 
  282.   automatically set to false.
  283. • iterationCount - allows actions to be repeated many times. "option-u 44 
  284.   =" inserts 44 '='s into current window.  Also can be used to execute any 
  285.   function or macro (including the keyboard macro) many times.  Defaults to 
  286.   4.
  287. • jumpToRegister - prompts for a single char, and then jumpts to 
  288.   temporary mark of that name created by 'pointToRegister'.
  289. • keyAscii - insert ascii representation (in decimal)
  290.   of the keydown event, plus a modifier string, if 
  291.   necessary.
  292. • keyCode - insert the key code along w/ a string 
  293.   representing and modifiers into the current window.
  294.   Can be used to create bindings in 'Alphabits'.
  295. • killLine - kill text from insertion point to the end 
  296.   of the line. If the line has no text, delete the line 
  297.   and move succeeding lines up one.
  298. • killWindow - kill current window
  299. • launch -f <name> - launch the named app into the background. Note that 
  300.   for some yet unexplained reason, some applications (MicroSoft Word) 
  301.   won't launch completely in the background. 'launch'ing such 
  302.   applications won't insert the application into any system menu that 
  303.   specifies running applications (although "About the Finder..." will 
  304.   list it. The only way to get to such an app is through Alpha's 
  305.   'switchTo', after which the application will finish launching. The '-f' 
  306.   option gets around this by launching the application in the foreground 
  307.   instead.
  308. • lineStart <pos> - return the position of the start of
  309.   the line 'pos' is on.
  310. • listBindings - list all current bindings.
  311. • listpick [-p <prompt>] [-l] [-L <def list>] <list>
  312.   This command will display a dialog with the list displayed in a List Manager list. If 
  313.   the user presses the Cancel button, an empty string is returned. If the user selects 
  314.   the Open button, or double clicks an item in the list, that item will 
  315.   be returned. If '-l' is specified, than the return is a list of items.
  316. • load - loads hilited text, or entire window if 
  317.   nothing is hilited. 'load'ing means that whatever 
  318.   bindings or macro definitions are present in the 
  319.   loaded text take effect
  320. • lookAt [-w <name>] <pos> - return the 'pos'th character of the 
  321.   current file, or the file named by <name> if the '-w' option is specified.
  322. • markHilite - This is the 'Hilite' from the 'Edit'
  323.   menu. If there is a currently hilited selection, the 
  324.   selection is unhilited, leaving the mark and the 
  325.   insertion point around the old selection. If there 
  326.   is not a selection, the region between the insertion 
  327.   point and the mark is selected.
  328. • markMenuItem [-m] <menuName> <item text> <on|off> [<mark char>] - Either mark or unmark
  329.   the menu item of user menu 'menuName' that has text '<item text>'. 
  330.   Note that unless the menu is not only created, but also already
  331.   inserted, this command has no effect. 
  332. • matchBrace - moves the insertion point to the 
  333.   character that matches the character after the current 
  334.   insertion point
  335. • matchIt <brace char> <pos> - Return pos of matching brace. Recognizes 
  336.   parenthesis, square brackets, and curly braces.
  337. • maxPos [-w <win>] - returns the number of characters in the front
  338.   window.
  339. • menu [-n <name>] [-i <num] [-m] [-p <procname>] <list of menu items> - Defines a 
  340.   new menu named 'name' (if provided w/ '-n' option). The menu is not yet 
  341.   inserted into the menubar. The menu commands may be nested for 
  342.   heirarchical menus, see 'AlphaBits.tcl' for examples. Alpha massages the 
  343.   function names to make them look better in the menus. 
  344.   '-n <num>'    Resource id of icon suite to use for menu title. 'ics#' 
  345.                 is the only resource that is really necessary.
  346.   '-n <name>'    Name the menu. Not necessary for submenus.
  347.   '-m'            No menu form. If not supplied, each menu item is split into 
  348.                   words at each capitalized letter.
  349.   '-p <name>'     The tcl proc named by 'name' is called w/ the menu item's 
  350.                   contents as it's single argument when the item is chosen. If the 
  351.                   proc returns "normal" as its result, the menu item is executed as 
  352.                   if no proc had been specified.
  353. • message <string> - prints 'string' on the status line.
  354. • mkdir <name> - creates a directory (folder) named 
  355.   'name' in the current directory.
  356. • mousePos - Returns list <row,col> of mouse position, if the mouse is 
  357.   currently over the active window. Otherwise, return error (catch w/ 
  358.   'catch').
  359. • moveInsertionHere [-last] - move the insertion point to the 
  360.   first (or last) line displayed
  361. • moveFile <fromName> <toName>
  362.   This command will move the file fromName to toName, overwriting any 
  363.   existing file. The move can not be made across volume (disk drives) 
  364.   boundaries. 
  365. • moveWin [win name] <left> <top> - moves current or specified window. 
  366.   The window name can be "StatusWin".
  367. • mtime <time> [long|short|abbrev]
  368.   Returns a date and time string using the Macintosh International Utilities. The 
  369.   long/short/abbrev specification corresponds to the date. These are the following 
  370.   formats:
  371.     short        3/16/92 9:20:46 PM
  372.     abbrev    Mon, Mar 16, 1992 9:20:49 PM
  373.     long        Monday, March 16, 1992 9:20:43 PM
  374.   The returned value actually is in the form of a list. To get text as 
  375.   above, run the result through 'join', as in "join [mtime [now] short]".
  376. • new [-g <l> <t> <w> <h>] [-n <name>] - opens an untitled window. Can optionally 
  377.   provide left and top coordinates, plus width and height. All or none.
  378. • nextLine - move insertion point to next line
  379. • nextLineSelect - extend selection to the next line
  380. • nextLineStart <pos> - return the position of the start 
  381.   of the next line after position 'pos'.
  382. • nextSentence - go to next sentence ("fill.tcl").
  383. • nextWindow - select next window
  384. • now
  385.   Returns the current time as Macintosh seconds. This is the number of seconds that 
  386.   have elapsed since Midnight Jan 1, 1904.
  387. • oneSpace - converts whitespace surrounding insertion
  388.   into a single space.
  389. • openLine - insert a new line following the current 
  390.   one and move the insertion point to it
  391. • pageBack - display prev screenful, move the
  392.   insertion point if 'moveInsertion' enabled
  393. • pageForward - display next screenful, move the
  394.   insertion point if 'moveInsertion' enabled
  395. • pageSetup - display the printing PageSetup dialog.
  396. • paste - insert the last chunk of text created by 'cut' 
  397.   or 'copy'
  398. • pointToRegister - prompts for a single character, and then assigns a 
  399.   temporary mark of that name to the current insertion point. Point can 
  400.   be jumped to via 'jumpToRegister'.
  401. • posToRowCol <pos> - converts from absolute position to row, col.
  402. • prefixChar - used to further modify the next keystroke 
  403.   combination, in the same manner as using the shift key 
  404.   in the next keystroke
  405. • previousLine - move insertion point to the previous 
  406.   line
  407. • prevLineSelect - extend selection to the previous line
  408. • prevSentence - go to previous sentence ("fill.tcl").
  409. • prevWindow - select previous window
  410. • print - print front window
  411. • processes - returns info of active processes. A list of lists, each 
  412.   sublist contain a file-name, an application signature, the application 
  413.   memory size, and the number of ticks the application has been active.
  414. • prompt <prompt> <default> [<name> <menu item>*] - prompt dialog to 
  415.   the user with a prompt string and a default value. The prompt dialog can 
  416.   optionally include a popup menu specified by 'name' and the succeeding 
  417.   strings. Selection of the popup menu items inserts the item text into the 
  418.   editable dialog item. 'Prompt' returns the value of the editable item. 
  419.   If the 'Cancel' button is selected, the tcl returns an error and your 
  420.   script will be stopped unless you execute the command from 'catch'.
  421. • putfile <prompt> <original>
  422.   This command will display an SFPutFile() and return the full path name of the 
  423.   selected file, or an empty string if CANCEL button was selected. Original is the 
  424.   default name displayed for the user.
  425. • putScrap [<string>]+ - Concatenate strings together into the system 
  426.   scrap. The scrap can be appended to through calls of the form 'putScrap 
  427.   [getScrap] " another word"'.
  428. • pwd
  429.   This command will return the current working directory.
  430. • quit - quits ALPHA
  431. • rectMarkHilite - creates a rectangular selection 
  432.   between the mark and the insertion point.
  433. • redo - redo the next action that has been undone but 
  434.   not redone
  435. • regModeKeywords [options] <mode> <keyword list> - Set keywords and comments that 
  436.   Alpha can recognize to color them. Specifically, in mode <mode>, every 
  437.   keyword specified in the list is colored non-black (blue, by default). 
  438.   Comments, if specified by '-e' or '-b' below, are colored red by defualt.
  439.     -m <c>                            Specify a magic character. Every word beginning with the 
  440.                                     magic character is a keyword.
  441.     -e <commentstr>                    Specify a string that begins comments that last to 
  442.                                     the end of the line. 
  443.     -b <comment beg> <comment end>    Specify a pair of strings that bracket a 
  444.                                     comment.
  445.     -c <color>                        Comment color.
  446.     -k <color>                        Keyword color.
  447. • removeFile <fileName>
  448.   This command will delete the file or folder 'fileName'.
  449. • removeMark [-all]|[[-n <mark name] [-w <specname>]]- allows marks to be 
  450.   removed. If no options are specified, it's interactive.
  451. • removeMenu <name> - remove menu 'name' from menubar, except those 
  452.   specified by previous 'makeMenuPermanent' calls.
  453. • removeTMark <name> - remove temporary mark.
  454. • repeatSearchBackward - repeat search backward
  455. • repeatSearchForward - repeat search forward
  456. • replace - replace the current selection
  457. • replaceAll - replace all further occurrences in the current file.
  458. • replace&FindAgain - replace the current selection and find next 
  459.   occurrence.
  460. • replaceString <str> - specifies replacement string
  461. • replaceText <pos1> <pos2> [text]+ - replaces the text
  462.   between 'pos1' and 'pos2' with 'text', where 'text' can be any number 
  463.   of arguments. Leaves insertion at end, mark at beginning of inserted 
  464.   text. 
  465. • restoreVars - restore variables to saved state, 
  466.   see 'saveVars'
  467. • revert - revert the file to it's last saved version
  468. • rowColToPos [-w <win>] <row> <col> - converts to abosolute position.
  469.   Accepts optional -w parameter that allows window to be specified.
  470. • rsearch - reverse incremental search, see 'isearch'.
  471. • save - save current window
  472. • saveAs - save current window with new name
  473. • saveVars - save variable state, see 'restoreVars'
  474. • scrollDownLine - same action as that which occurs when 
  475.   the down arrow in the vertical scrollbar is selected
  476. • scrollLeftCol - same action as that which occurs when
  477.   the left arrow in the horizontal scrollbar is selected
  478. • scrollRightCol - same action as that which occurs when
  479.   the right arrow in the horizontal scrollbar is 
  480.   selected
  481. • scrollUpLine - same action as that which occurs when 
  482.   the up arrow in the vertical scrollbar is selected
  483. • search  [options…] <pattern> <pos> - 
  484.   -f <num>        - go forward?
  485.   -r <num>        - regular expression?
  486.   -s            - save previous search string
  487.   -i <num>        - ignore case?
  488.   -m <num>        - match words?
  489.   -n            - failed search still returns TCL_OK, but null string.
  490.   -l <limit>    - limit on how search goes.
  491.   --             - next arg is the pattern.
  492.  
  493.   Searches for 'pattern' from position 'pos'.  If the search succeeds, a 
  494.   list of two positions will be returned.  The first is the starting position 
  495.   of the match, the second is one past the last character.
  496. • select <pos1> <pos2> - selects the text between 'pos1' 
  497.   and 'pos2'.
  498. • selEnd [-w <win] - returns the end of the hilited selection, or 
  499.   the current insertion point if no text is selected.
  500. • sendOpenEvent <-n app name> <file name> - Send an open doc event to 
  501.   another currently running application.
  502. • sendToBack <winName> - Sent named window to back.
  503. • setFileInfo <file> <field> [arg] - Allows some information to be set 
  504.   for files. Settable fields are 'modified', 'created', 'creator', and 
  505.   'type' all take an argument. 'resourcelen' can be set, but doesn't take 
  506.   an argument and just removes the resource fork.
  507. • setFontsTabs - bring up font and tab dialog
  508. • setMark - set the current mark to the insertion point
  509. • setNamedMark [name disp pos end] - set named mark. If optional arguments are 
  510.   present, the mark is created with prompting user. 'disp' is the 
  511.   character position of the start of the first line to be displayed, 
  512.   while 'pos' and 'end' bracket the text to be selected.
  513.   the first char 
  514. • setWinInfo [-w <win>] <filed> <arg> - Sets a piece of data about either 
  515.   the current or a specified window. Settable fields 'platform', 'state', 
  516.   'read-only', 'tabsize' and 'dirty'.
  517. • shell - open the Tcl shell.
  518. • shiftLeftRegion - shifts the current region left a tab
  519. • shiftRightRegion - shift the current region right a 
  520.   tab
  521. • sizeWin [win name] <width> <height> - sets size of current or specified window.
  522.   The window name can be "StatusWin", although only the width can be 
  523.   changed.
  524. • sortMarks - sorts all marks of open windows, w/o 
  525.   setting the dirty flag. If the files are saved, the 
  526.   marks will be saved in alphabetical order.
  527. • spacesToTabs - convert spaces in selection to tabs
  528. • specToPathName [hex data] - given an FSSpec in hex form (as that 
  529.   returned by aebuild, for instance, see the definition of thinkFileName 
  530.   in :Tcl:SystemCode:think.tcl), return a complete pathname.
  531. • startEscape - used to further modify the next 
  532.   keystroke combination, in the same manner as using the 
  533.   shift key in the next keystroke
  534. • startKeyboardMacro - start recording keyboard macro
  535. • statusPrompt <prompt> [<func>] - Prompt in the status window. If 'func' 
  536.   is present, call this routine at each key-press with the current 
  537.   contents of the status line and the key, insert into statusline 
  538.   whatever is returned by the func.
  539. • substituteVars <string> - Takes a single string and
  540.   substitutes for all variables inside it, regardless of
  541.   depth. Unfortunately, you currently need to make 'global var' 
  542.   declarations in the proc you call this for each 'var' that might need 
  543.   to be substituted in the string (see proc.tcl for examples).
  544. • switchTo <appName> - Switches to application 'appName'.
  545. • tab - insert a tab
  546. • tabsToSpaces - convert tabs in selection to spaces.
  547. • tclFileCompletion - completes the previous word as a
  548.   file is in a shell window
  549. • tclResult - displays a dialog showing the result of 
  550.   the last TCL evaluation.
  551. • thinkReference <-t|-l> <think reference page> - Interact with Think 
  552.   Reference 2.0. '-t' retrieves a template without leaving Alpha, '-l' 
  553.   switches to Think Reference and goes to the specified page.
  554. • ticks
  555.   Returns the current TickCount. Ticks are 60ths of a seconds. TickCount is the 
  556.   number of ticks since the Macintosh was started. The command:
  557.         puts stdout [expr "[ticks] / 60"]
  558.   will print the number of seconds since the Macintosh was booted.
  559. • toggleScrollbar - toggles horizontal scrollbar on frontmost window. 
  560.   Will not succeed if scrollbar scrolled.
  561. • traceFunc on <funcName> <winName> Trace 'funcName', send output to 
  562.                                     'winName'. 
  563.   traceFunc off                        Turn function tracing off.
  564.   traceFunc status                    Display current tracing status.
  565. • unascii  (see bindings)
  566. • unbind  (see bindings)
  567. • undo - undo the last action that has not been undone
  568. • upcaseRegion - convert all lowercase letters to 
  569.   uppercase in the current region
  570. • upcaseWord - convert all lowercase letters to 
  571.   uppercase in the current word
  572. • version - Return string of the form "Alpha Version 5.31, Feb. 15, 1993".
  573. • watchCursor - turns the cursor into a a watch cursor.
  574. • wc <file>... - counts chars, words, lines of input files.
  575. • winFuncTitle <winName> <title> - Sets the title of the leftmost 
  576.   titlebar menu. See the section on "TitleBar Menus" in "General Help".
  577. • winNames [-f] - return a TCL list of all open windows. If '-f' option 
  578.   specified, complete pathnames are returned.
  579. • wrap - see the section on "Fill" routines.
  580. • wrapText
  581. • xtclcmd [-f filename] <cmdname> [argument_list]*
  582.   This command will load the external command cmdname and pass it the argument 
  583.   list [ cmdname argument_list... ]. External command are code resources of type 
  584.   XTCL. They may be located in the resource fork of the tickle application, or they 
  585.   may be located in a file named XTCL File in the same directory as the tickle 
  586.   application. If the optional -f filename is included, the external command will first 
  587.   be loaded from filename before the other two files.
  588.   See the appendix for a detailed description of the external tcl command interface. 
  589.   See the accompanying sources for an example of writing an XTCL.
  590. • yank - insert the last piece of deleted text of less
  591.   than 1k. Consecutive deletes are concatenated.
  592.   together.
  593. • zapInvisibles - removes chars < ascii 32, except for
  594.   LF's and CR's.
  595. • zoom - zooms the current window
  596.